package org.lee.validation;

import org.lee.validation.service.ValidateService;
import org.lee.validation.vo.User;
import org.lee.validation.vo.resp.Result;

/**
 * App
 *
 * @author dralee
 * @date 2021-12-28 11:08:31
 **/
public class App {

    public static void main(String[] args) {
        ValidateService validateService = new ValidateService();
        User user = User.builder().email("").build();
        Result result = validateService.valid(user);
        System.out.println(result);

        user.setName("lee");
        user.setEmail("d");
        result = validateService.valid(user);
        System.out.println(result);

        user.setAge(10);
        user.setEmail("z@1.com");
        result = validateService.valid(user);
        System.out.println(result);
    }
}
